using KrasDD.Models;
using KrasDD.Services.Interfaces;

namespace KrasDD.Services.Implementations
{
    public class TeamService : BaseService<TEAM>, ITeamService
    {
        public TeamService(IFreeSql freeSql, IServiceProvider serviceProvider) : base(freeSql, serviceProvider)
        {
        }

        public async Task<List<TEAM_IDENTITY>> GetTeamIdentitiesAsync(string teamId)
        {
            return await _freeSql.Select<TEAM_IDENTITY>()
                .Where(x => x.SOURCE_ID == teamId)
                .ToListAsync();
        }
    }
}
